import {MockMethod} from 'vite-plugin-mock'

const mock = [
    {
        //登录
        url: '/user',
        method: 'get',
        response: () => {
            return {
                code: 200,
                msg: 'success',
                data: [
                    {
                        userId: '1',
                        username: 'username',
                        password: 'password',
                        email: 'email',
                        phone: 'phone',
                        nickname: 'name',
                        avatar: 'avatar',
                        status: 0,
                        updatedTime: '2024-09-22',
                        score: 100
                    }
                ]
            }
        }
    },
]

export default mock as MockMethod[]